{% for page in pageitems %}{% with pageitem=page, pagesource=page.source or {} %}
{% if not loop.first %}<hr/>{% endif %}
<div class="{{ site and site.media and site.media.cls.pagecontainersimple }}">
<div class="{{ site and site.media and site.media.cls.pagetitle }}">
{% if showrank and pageitem.rank %}{{ pageitem.rank }}. {% endif %}
<a target="_blank" href="{{ pageitem.url }}" class="{{ site and site.media and site.media.cls.pageexternallink }}"
title="{{ pageitem.title|e }} {{ (pageitem.published or pageitem.added) | utc14duration(i18n.duration) }} {{ pageitem.publisher or pagesource.name }}"
><span class="{{ site and site.media and site.media.cls.pagetitle }}">{{ pageitem.title|e }}</span></a>
<span class="{{ site and site.media and site.media.cls.pageadded }}">{{ (pageitem.published or pageitem.added) | utc14duration(i18n.duration) }}</span>
{% if pagesource.url %}
<a href="{{ pagesource.url }}"><span class="{{ site and site.media and site.media.cls.pagesource }}">{{ pageitem.publisher or pagesource.name }}</span></a>
{% else %}<span class="{{ site and site.media and site.media.cls.pagesource }}">{{ pageitem.publisher or pagesource.name }}</span>
{% endif %}
{% if pageitem.keyword %} [ <span class="{{ site and site.media and site.media.cls.pagekeyword }}">{{ pageitem.keyword }}</span> ]
{% elif pageitem.keywords %} [ <span class="{{ site and site.media and site.media.cls.pagekeyword }}">{{ pageitem.keywords|join(' ') }}</span> ]
{% endif %}
{% if pageitem.event %}[ {% if pageitem.event.exposed %}
<a target="_blank" href="{{ pageitem.event.url }}">{{ pageitem.event.keyword }}</a>
{% else %}
<span class="{{ site and site.media and site.media.cls.pageevent }}" url="{{ pageitem.event.url }}">{{ pageitem.event.keyword }}</span>
{% endif %} ]{% endif %}
</div>
{% if showcontent %}
<div class="{{ site and site.media and site.media.cls.pagecontent }}">{{ pageitem.content|e }}</div>
{% endif %}
</div>
{% endwith %}{% endfor %}
